<%= form_for([@product, @inventory]) do |f| %>
  <% if @inventory.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@inventory.errors.count, "error") %> prohibited this inventory from being saved:</h2>

      <ul>
      <% @inventory.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
<fieldset>
  <div class="s-inline-form">
    <%= f.label :size %><br />
    <%= f.select(:size, options_for_select([['XS','XS'],['S','S'],['M','M'],['L','L'],['XL','XL']]), { :prompt => 'Please Select' }) %>
  </div>
  <div class="s-inline-form">
    <%= f.label :size_number %><br />
    <%= f.number_field :size_number %>
  </div>

  <div class="s-inline-form">
    <%= f.label :quantity %><br />
    <%= f.number_field :quantity %>
  </div>

</fieldset>

  <div class="actions">
  	<%= f.hidden_field :product_id, :value => @product.id %>
    <%= f.submit  :class => 'gray-btn' %>
  </div>

<% end %>
